package com.archetypus.projectschedule.common.dto.projects;

import java.io.Serializable;
import java.util.Collection;

import com.archetypus.projectschedule.common.dto.activities.Activity;

public class Project implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8868792183284971673L;
	private ProjectKey projectKey;
	private String name;
	private String description;
	private Collection<Activity> detail;
	public ProjectKey getProjectKey() {
		return projectKey;
	}
	public void setProjectKey(ProjectKey projectKey) {
		this.projectKey = projectKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Collection<Activity> getDetail() {
		return detail;
	}
	public void setDetail(Collection<Activity> detail) {
		this.detail = detail;
	}
	public boolean addActivity(Activity activity) {
		return detail.add(activity);
	}
	public boolean removeActivity(Activity activity) {
		return detail.remove(activity);
	}
}
